"""
了解
"""

import time

from selenium import webdriver
driver=webdriver.Edge()
driver.maximize_window()
driver.get("https://www.baidu.com/")
my_cookie={
    "name":"BDUSS",
    "value":"2RNVkN5amJsVFpsamFqQT2sjLvOQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHT2gWh09oFoZ"
}
driver.add_cookie(my_cookie)
time.sleep(3)

driver.refresh()




# 4 关闭浏览器驱动对象
time.sleep(300)  #代码暂停10s中
driver.quit()





